Page(
  {
    data:{
      name:'lzp',
      students:[
        {id:1,name:"a",age:1},
        { id: 2, name: "b", age: 2 },
        { id: 3, name: "c", age: 3 },
        { id: 4, name: "d", age: 4 },
        { id: 5, name: "e", age: 5 },
      ],
      count:0,
    },
    handleBtnClick(){
      //1.这样不能刷新界面数据
      //this.data.count +=1
      //console.log(this.data.count)

      //刷新数据  this.setdata
    this.setData({
      count:this.data.count+1
    })
    },
    handleSum(){
      this.setData({
        count:this.data.count-1
      })

    }
  }
)